<?php
/**
 * Created by PhpStorm.
 * User: Lenovo
 * Date: 2019/4/27
 * Time: 22:49
 */

namespace app\api\model;


class Log extends BaseModel
{
    protected $table='jc_log';
    public function shoukuan($uid)
    {
        $rs=$this->where('uid',$uid)->field('lid,zid,l_createtime,l_yongjin')->select();
        foreach ($rs as $k=>$v)
        {
            $zid=$v['zid'];
            if($zid==1)
            {
                $rs[$k]['type']='微信';
            }
            if($zid==2)
            {
                $rs[$k]['type']='支付宝';
            }
            if($zid==3)
            {
                $rs[$k]['type']='银行卡';
            }
        }
        if(empty($rs))
        {
            $rs=array();
        }
        return $rs;
    }
}